﻿@model AuthorInfoViewModel
			 
@if (!string.IsNullOrEmpty(this.Model.CustomScript))
{ 
	<script type="text/javascript">
		@Html.Raw(this.Model.CustomScript)
	</script>
}
			 
@if (this.Model != null)
{
	bool socialNetworkSet = !string.IsNullOrEmpty(this.Model.SocialNetwork);
	<hr />
	<div class="about">
		@if (socialNetworkSet)
		{
			<a href="@this.Model.SocialNetwork">
				<img alt="author" src="@this.Model.ImageUri" title="@this.Model.Name" />
			</a>
		}
		else
		{
			<img alt="author" src="@this.Model.ImageUri" title="@this.Model.Name" />
		}
		
		<h1>
			@if (socialNetworkSet)
			{
				<a href="@this.Model.SocialNetwork">@this.Model.Name</a>
			}
			else
			{
				@this.Model.Name
			}
		</h1>	
		@if(!string.IsNullOrEmpty(this.Model.Description))
		{
			<p>@this.Model.Description</p>
		}
	</div>
	<hr />
	<div class="copyright">
		<p>
			@Resources.PoweredBy
		</p>
		<p>
			@string.Format(Resources.CopyrightInfo, this.Model.Name)
		</p>
	</div>
}